import request from '@/utils/request'
import qs from 'qs'
export function getProgress(trackId, trackType) {
  return request({
    url: '/promissionTacking/getProgress',
    method: 'get',
    params: {
      trackId: trackId,
      trackType: trackType
    }
  })
}

export function insertPromissionTacking(promissionTacking) {
  const data = {
    'trackId': promissionTacking.trackId,
    'trackType': promissionTacking.trackType,
    'processState': promissionTacking.processState,
    'processDescribe': promissionTacking.processDescribe,
    'userId': promissionTacking.userId,
    'processSort': promissionTacking.processSort
  }
  return request({
    url: '/promissionTacking/insert',
    method: 'post',
    data: qs.stringify(data)
  })
}

